package Exercise;
interface MyComparable{
    int compareto(Object other);
}
class computil{
    public static Object max(MyComparable[] objs){
        if(objs==null||objs.length==0){
            return null;
        }
        MyComparable max=objs[0];
        for(int i=1;i<objs.length;i++){
            if(max.compareto(objs[i])<0){
                max=objs[i];
            }
        }
        return max;
    }
}
interface IAdd{
    void add(int number);
    void addAll(int[] numbers);
}